#pragma once
#include "../server.hpp"

namespace umtl
{
	//////////////////////////////////////////////////////////////////////////
	//

	class udp_server : public server< udp >
	{
	public:
		udp_server( unsigned short int port, udp_server::read_handler_t read_handler, udp_server::close_handler_t close_handler );

	private:
		void start_receive( udp_server::read_handler_t read_handler );

		connection * accpet_connection_;
		unsigned short int port_;
	};

	//////////////////////////////////////////////////////////////////////////
}